<?php
/**
 * Base project form.
 * 
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here 
 * @version    SVN: $Id: BaseForm.class.php 20147 2009-07-13 11:46:57Z FabianLange $
 */
class SearchForm extends sfForm
{
		public function configure()
		{
			$this->setWidgets(array(
			'search'		=>	new sfWidgetFormInputText(array(), array('style'=>'margin-top:0px; width:68%; float:left')),
			'_csrf_token'	=>	new sfWidgetFormInputHidden(),
			));			
			$this->widgetSchema->setLabel('search',' ');
			$this->widgetSchema->setHelp('search', ' ');			
			$this->setValidators(array(	'search' => new sfValidatorString(array('min_length'=>'3', 'required'=>'true'), array('min_length'=>'Для поиска минимум - 3 символа', 'required'=>'Введите текст для поиска') ) ));
		}
}